home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / NewInspector.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-25  |  1.7 KB  |  80 lines

  1.  
  2. /*  NewInspector.h v1.1b
  3. *
  4. *  This is a generic Inspector Class.  For a description, see the man page.
  5. *  
  6. *  Imran Qureshi
  7. *
  8. *  11/5/91
  9. *
  10. * Copyright (C)  1991  The Board of Trustees of
  11. * The Leland Stanford Junior University.  All Rights Reserved.
  12. */
  13.  
  14. #define NEWINSPECTOR_H_ID "$Id: NewInspector.h,v 1.11 1992/02/09 14:49:15 pfkeb Rel $"
  15.  
  16. #import <objc/Object.h>
  17. #import <objc/List.h>
  18. #import <appkit/Application.h>
  19.  
  20. @interface NewInspector:Object
  21. {
  22.     id    InspectorPanel;
  23.     id    thePopUpListButton;
  24.     id    thePopUpList;
  25.     id    InspectorBox;  /*  Box which will hold the views assigned to it */
  26.     
  27.     List    *ViewsList;
  28.     List    *SupervisorList;
  29. }
  30.  
  31. /* Creates a new Inspector
  32.  */
  33. + new;
  34.   
  35.  /* initializes a new Inspector created with new
  36.  * do not use [[NewInspector alloc] init] to get a NewInspector.
  37.  * instead use +new.
  38.  */
  39. - init;
  40. -free;
  41.  
  42.  /* return the InspectorPanel of class "Panel".
  43.   * Can be used for adjusting the size and place of the Inspector Panel.
  44.   */
  45. -inspectorPanel;
  46.  
  47.  /* show/hide the Inspector Panel.
  48.  */
  49. - orderFrontPanel:sender;
  50. - orderBackPanel:sender;
  51.  
  52.   /*  set the Title of the Inspector Panel.
  53.   */
  54. -setTitle:(char *)theTitle;
  55.  
  56.  /*  Add a View "aView". add a button "Name" to the popuplist. and set
  57.  *  "aSupervisor" as the object to get "windowDidUpdate:" message
  58.  */
  59. -addView:aView withName:(char *)Name withSupervisor:(id)aSupervisor;
  60.  
  61.  /* remove the button and view corresponding to "Name".
  62.  */
  63. -replace:(char *)Name with:(char *)someName andView:(id)aView;
  64.  
  65. -remove:(char *)Name;
  66.  
  67.  /* show the button and view corresponding to "Name"
  68.  */
  69. -show:(char *)Name;
  70.  
  71.  /* send an windowDidUpdate: message to all Supervisors
  72.  */
  73. -updateDisplay;
  74. - windowDidUpdate:sender;
  75.  
  76.  /* PRIVATE */
  77. -toggleInspectorPanels:sender;
  78.  
  79. @end
  80.